<?php

	#doc
	#	classname:	addnewsController
	#	scope:		PUBLIC
	#
	#/doc
	
	class addnewsController extends Controller	
	{
	 public $layout='application.modules.admin.views.layouts.admin';
	 
		#	internal variables
		
		#	Constructor
		function __construct ( )
		{
			# code...
		}
		public function actionIndex()
		{
			//Получаем все типы новостей
			$type_model = new news_type();		
			$type=$type_model->type_news();
			$news= new news();
			$news->add();
			$this->render("application.modules.admin.views.news.addnews.addnews", array("type"=>$type));
			
		}
	
	}
	###

?>